package com.springboot.mapper;

import com.springboot.model.NavigationRecord;
import com.springboot.model.NavigationRecordKey;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface NavigationRecordMapper {
    int deleteByPrimaryKey(NavigationRecordKey key);

    int insert(NavigationRecord record);

    int insertSelective(NavigationRecord record);

    NavigationRecord selectByPrimaryKey(NavigationRecordKey key);

    int updateByPrimaryKeySelective(NavigationRecord record);

    int updateByPrimaryKey(NavigationRecord record);

    //根据用户Id寻找使用次数最多的tableBar
    NavigationRecord selectMaxNumByUserId(Integer userId);
}